package com.msjh.vueservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.msjh.vueservice.entity.Index;
import com.msjh.vueservice.entity.Label;
import com.msjh.vueservice.mapper.IndexMapper;
import com.msjh.vueservice.service.IndexService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zy
 * @since 2022-06-15
 */
@Service
public class IndexServiceImpl extends ServiceImpl<IndexMapper, Index> implements IndexService {

    @Override
    public List<Index> getAllIndices() {

        QueryWrapper<Index> queryWrapper = new QueryWrapper<>();
        List<Index> indices = this.baseMapper.selectList(queryWrapper);
        return indices;
    }

}
